package com.sky.mapper;

import com.sky.annotation.AutoFill;
import com.sky.entity.DishFlavor;
import com.sky.enumeration.OperationType;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface DishFlavorMapper {

    /**
     * 添加菜品口味
     * @param flavors
     */
    void saveDishFlavors(List<DishFlavor> flavors);

    /**
     * 批量删除菜品口味
     * @param ids
     */
    void delete(List<Long> ids);

    /**
     * 根据菜品id查询菜品口味
     * @param id
     * @return
     */
    List<DishFlavor> getByDishId(Long id);
}
